export default class WeaponData {
  private _index: number
  public prices = [100, 50, 200, 110, 300, 170]
  public static prefabs = new Array(6)
  public weaponModelPaths = [
    'res/atlas/Models/Conventional/Turret.lh',
    'res/atlas/Models/Conventional/Turret_up.lh',
    'res/atlas/Models/Conventional/MissileLauncher.lh',
    'res/atlas/Models/Conventional/MissileLauncher_up.lh',
    'res/atlas/Models/Conventional/LaserBeamer.lh',
    'res/atlas/Models/Conventional/LaserBeamer_up.lh',
  ]

  public price : number
  public price_up : number
  public weaponPath :string
  public weaponPath_up :string

  public set index(value) {
    this._index = value
    this.price = this.prices[value * 2]
    this.price_up = this.prices[value * 2 + 1]
    this.weaponPath = this.weaponModelPaths[value * 2]
    this.weaponPath_up = this.weaponModelPaths[value * 2 + 1]
  }

  public get index(){
    return this._index
  }
}